# -*- coding: utf-8 -*-
"""
Web framework/Tornado Httpserver/test01.py
"""

import tornado.web
import asyncio


class IndexHandler(tornado.web.RequestHandler):
    def get(self):
        self.finish("This is get method.")


async def main():
    app = tornado.web.Application([
        (r"/", IndexHandler)
    ])
    app.listen(8888)
    await asyncio.Event().wait()


if __name__ == '__main__':
    asyncio.run(main())
